// vite.config.ts
import { defineConfig } from "file:///E:/Desktop/vuefinder-master/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import vue from "file:///E:/Desktop/vuefinder-master/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import copy from "file:///E:/Desktop/vuefinder-master/node_modules/rollup-plugin-copy/dist/index.commonjs.js";
import svgLoader from "file:///E:/Desktop/vuefinder-master/node_modules/vite-svg-loader/index.js";
import Components from "file:///E:/Desktop/vuefinder-master/node_modules/unplugin-vue-components/dist/vite.js";
import { AntDesignVueResolver } from "file:///E:/Desktop/vuefinder-master/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_dirname = "E:\\Desktop\\vuefinder-master";
var vite_config_default = defineConfig({
  server: {
    proxy: {
      "/api": {
        target: "http://192.168.1.57:8081",
        // target: 'http://192.168.1.53:3000',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "")
      }
      //   '/api': {
      //     target: 'https://vuefinder.ozdemir.be/vuefinder',
      //     changeOrigin: true,
      //     rewrite: (path) => path.replace(/^\/api/, ''),
      //   },
    }
  },
  plugins: [
    vue(),
    svgLoader(),
    copy({
      targets: [
        { src: "src/locales/*", dest: "dist/locales" },
        { src: "src/features.js", dest: "dist" }
      ],
      hook: "writeBundle"
    }),
    Components({
      resolvers: [
        AntDesignVueResolver({
          importStyle: false
          // css in js
        })
      ]
    })
  ],
  css: {
    preprocessorOptions: {
      scss: {
        api: "modern-compiler"
        // or 'modern'
      }
    }
  },
  build: {
    lib: {
      entry: resolve(__vite_injected_original_dirname, "src/index.js"),
      formats: ["es", "cjs"],
      name: "VueFinder",
      // the proper extensions will be added
      fileName: "vuefinder"
    },
    rollupOptions: {
      // make sure to externalize deps that shouldn't be bundled
      // into your library
      external: [
        "vue",
        "mitt",
        "vanilla-lazyload",
        "dragselect",
        "cropperjs/dist/cropper.css",
        "cropperjs",
        "@uppy/core",
        "@uppy/xhr-upload"
      ],
      output: {
        // Provide global variables to use in the UMD build
        // for externalized deps
        globals: {
          vue: "Vue"
        }
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxEZXNrdG9wXFxcXHZ1ZWZpbmRlci1tYXN0ZXJcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXERlc2t0b3BcXFxcdnVlZmluZGVyLW1hc3RlclxcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovRGVza3RvcC92dWVmaW5kZXItbWFzdGVyL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcbmltcG9ydCB7IHJlc29sdmUgfSBmcm9tICdwYXRoJ1xuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXG5pbXBvcnQgY29weSBmcm9tICdyb2xsdXAtcGx1Z2luLWNvcHknXG5pbXBvcnQgc3ZnTG9hZGVyIGZyb20gJ3ZpdGUtc3ZnLWxvYWRlcidcbmltcG9ydCBDb21wb25lbnRzIGZyb20gJ3VucGx1Z2luLXZ1ZS1jb21wb25lbnRzL3ZpdGUnO1xuaW1wb3J0IHsgQW50RGVzaWduVnVlUmVzb2x2ZXIgfSBmcm9tICd1bnBsdWdpbi12dWUtY29tcG9uZW50cy9yZXNvbHZlcnMnO1xuXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoe1xuICBzZXJ2ZXI6IHtcbiAgICBwcm94eToge1xuICAgICAgJy9hcGknOiB7XG4gICAgIC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